var AppDispatcher = require('../dispatcher/AppDispatcher');

var ButtonActions = {
	addNewItem: function(text){
		AppDispatcher.dispatch({
			actionType:'ADD_NEW_ITEM',
			text:text
		})
	},
	removeItem: function(index){
		console.log('action',index)
		AppDispatcher.dispatch({
			actionType:'REMOVE_ITEM',
			index:index
		})
	},
	
}

module.exports = ButtonActions;